/*
Title: Practica 1 - Hola Mundo en ARM ASSAMBLY 		Filename:hello.s
Autor: Jose Manuel Marquez Enriquez		Date: 7-Mar-2017
Descripcion: HOLA MUNDO en ARM Assembly
Input: -
Output: Hola Mundo to console
*/

@holamundoMarquez.s - "HolaMundo!" program

.data		@store string and length in 2 variables
msg:
	.ascii "HolaMundo!"
len = . - msg
.globl _start
.section .text
_start:
	mov r0, $1
	ldr r1, =msg	@pointer string to be printed in r1
	ldr r2, =len	@length of string in r2
	mov r7, $4	@prepare to output to console
	swi $0		@wake kernel

	mov r0, $0	@set the return value to 0
	mov r7, $1	@prepare to exit
	svc $0		@wake kernel
